//
//  YZNetworkManager+changeMobileNumber.h
//  YZMicroStock
//
//  Created by apple on 17/3/7.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"

@interface YZNetworkManager (changeMobileNumber)

/**
 *  修改绑定手机号码第一步 解绑手机号码 获取短信验证码
 *
 *  @param success  成功回调
 *  @param failure  失败回调
 */
-(void)unbind_getMobileImessagewithCheckCode:(NSString *)code success:(void (^)(NSURLSessionDataTask *, id))success failure:(void (^)(NSError *))failure;

- (void)unbind_getMobileImessagesuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                                      failure:(void (^)(NSError *error))failure;

/**
 *  修改绑定手机号码第一步 解绑手机号码
 *
 *  @param code    短信验证码
 *  @param success 成功回调
 *  @param failure 失败回调
 */
- (void)unbind_MobileWithCheckCode:(NSString *)code
                           Success:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                           failure:(void (^)(NSError *error))failure;



/**
 *  修改绑定手机号码第二步 绑定手机号码 获取短信验证码
 *
 *  @param mobile  新的手机号码
 *  @param success  成功回调
 *  @param failure  失败回调
 */

-(void)bind_getMobileImessageWithMobile:(NSString *)mobile withCheckCode:(NSString *)code success:(void (^)(NSURLSessionDataTask *, id))success failure:(void (^)(NSError *))failure;
- (void)bind_getMobileImessageWithMobile:(NSString *)mobile success:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                                 failure:(void (^)(NSError *error))failure;

/**
 *  修改绑定手机号码第二步 绑定手机号码
 *
 *  @param mobile  新的手机号码
 *  @param code  短信验证码
 *  @param success  成功回调
 *  @param failure  失败回调
 */

- (void)bind_NewCheckMobileWithMobile:(NSString *)mobile withCheckCode:(NSString *)code success:(void (^)(NSURLSessionDataTask *, id))success failure:(void (^)(NSError *))failure;

- (void)bind_NewMobileWithMobile:(NSString *)mobile withCheckCode:(NSString *)code
                         success:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                         failure:(void (^)(NSError *error))failure;
@end
